package com.deluxelx.soul.inn.mapper.counselor;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deluxelx.soul.inn.bean.counselor.Appointment;
import com.deluxelx.soul.inn.bean.counselor.AppointmentBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 心里预约Mapper
 *
 * @author: zihao.liao
 * @date: 2024/5/28 17:33
 */
@Mapper
public interface AppointmentMapper extends BaseMapper<Appointment> {
    /**
     * 根据咨询师id获取未来一周的预约信息
     * @param counselorId 咨询师id
     * @return 未来一周预约信息
     */
    List<AppointmentBO> getAppointmentMes(@Param("counselorId") String counselorId);
    /**
     * 保存实体
     * @param entity 实体类
     * @return 结果
     */
    Integer saveEntity(@Param("entity") Appointment entity);
}
